import request from '@/utils/request'

export function getPostList(data) {
    return request({
        url: '/api/post/list',
        method: 'get',
        data: data
    })
}


export function addPostList(data) {
    return request({
        url: '/api/post',
        method: 'post',
        data: data
    })
}


export function getPost(data) {
    return request({
        url: `/api/post/${data.id}`,
        method: 'get'
    })
}
